package com.wanxs.mall.product.fegin;


import com.wanxs.mall.common.utils.Result;
import com.wanxs.mall.product.fegin.fallback.SeckillFeignServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "seckill-server",fallback = SeckillFeignServiceFallback.class)
public interface SeckillFeignService {

    @GetMapping("/seckill/seckillSessionBySkuId")
    Result getSeckillSessionBySkuId(@RequestParam("skuId") Long skuId);
}
